import permissionsApi, {
  type PermissionNode,
  type PermissionPayload
} from "./permissions";

export const getPermissionTree = permissionsApi.fetchTree;
export const createPermission = permissionsApi.create;
export const updatePermission = permissionsApi.update;
export const removePermission = permissionsApi.remove;

export type { PermissionNode, PermissionPayload };
